import { ipcRenderer } from 'electron'

export const close = () => ipcRenderer.send('window.close')
export const maximize = () => ipcRenderer.send('window.maximize')
export const minimize = () => ipcRenderer.send('window.minimize')
export const onMaximize = (callback) => ipcRenderer.on('onMaximize', (_event) => callback())
export const onUnmaximize = (callback) => ipcRenderer.on('onUnmaximize', (_event) => callback())
